decode Bitmap
fun decodeBitmap(bitmap: Bitmap?, codeType: Int): QRCodeScannerSDK.QRCodeScannerSDKDecodingResultData
Decodes an image containing Cronto or QR code from a bitmap.
The bitmap must be in ARGB_8888 format. Warning: The method processes the image and this could take some time to achieve. The process time depends on the size of the input image, make sure bitmap is not too large. Also, the decode process should be performed on it's own thread so that the main thread isn't blocked.
Return
QRCodeScannerSDKDecodingResultData containing decoded data and image format
Parameters
bitmap
Bitmap to decode.
code Type
indicates type of the image. A mask with possible values: QRCodeScannerSDKConstants.CRONTO_CODE, QRCodeScannerSDKConstants.QR_CODE, or QRCodeScannerSDKConstants.CRONTO_CODE + QRCodeScannerSDKConstants.QR_CODE
Throws
in case the image could not be decoded